/*
 * Copyright Ningbo Qishan Technology Co., Ltd
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.mds.group.purchase.shop.dao;

import com.mds.group.purchase.core.Mapper;
import com.mds.group.purchase.shop.model.Statistics;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * The interface Statistics mapper.
 *
 * @author pavawi
 */
public interface StatisticsMapper extends Mapper<Statistics> {

    /**
     * 统计指定时间段的访问量和今日浏览量
     *
     * @param appmodelId  the appmodel id
     * @param currentDate the current date
     * @param lastWeek    the last week
     * @return the statistics
     */
    Statistics selectSevenDaysStatisticData(@Param("appmodelId") String appmodelId,
                                            @Param("currentDate") String currentDate,
                                            @Param("lastWeek") String lastWeek);

    /**
     * 查询所有的appmodelId列表
     *
     * @return the list
     */
    List<String> selectAppmodelId();

}